package com.sainan114.pipelinestudy.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lgb
 * @Date: 2021/7/10
 */
public class PipelineParamsMap {
    public static Map<String, String> map = new HashMap<>();

    public final static String  STRATEGY_PARAMKEY_KEY = "STRATEGY_PARAMKEY_KEY";


    public final static String STRATEGY_RULE = "STRATEGY_RULE";


    public final static String getStrategyRule() {
        return map.get(STRATEGY_RULE);
    }

    public final static void setStrategyRule(String strategyQLRule) {
        map.put(STRATEGY_RULE, strategyQLRule);
    }

    public static void setStrategyRuleSum(String strategyRule) {
        map.put(STRATEGY_PARAMKEY_KEY, strategyRule);
    }

    public static String getStrategyRuleSum(String key) {
        return map.get(STRATEGY_PARAMKEY_KEY);
    }
}
